#include "pch.h"

#include "VertexArray.h"

VertexArray::VertexArray()
{
	glGenVertexArrays(1, &Id);
}

VertexArray::~VertexArray()
{
	glBindVertexArray(0);
	glDeleteVertexArrays(1, &Id);
}

void VertexArray::Bind()
{
	glBindVertexArray(Id);
}

void VertexArray::Unbind()
{
	glBindVertexArray(0);
}
